package com.ruoyi.project.NH.base_family_info.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.NH.base_family_info.mapper.BaseFamilyInfoMapper;
import com.ruoyi.project.NH.base_family_info.domain.BaseFamilyInfo;
import com.ruoyi.project.NH.base_family_info.service.IBaseFamilyInfoService;

/**
 * 农户管理Service业务层处理
 *
 * @author 狗熊岭
 * @date 2023-07-23
 */
@Service
public class BaseFamilyInfoServiceImpl implements IBaseFamilyInfoService
{
    @Autowired
    private BaseFamilyInfoMapper baseFamilyInfoMapper;

    /**
     * 查询农户管理
     *
     * @param fid 农户管理主键
     * @return 农户管理
     */
    @Override
    public BaseFamilyInfo selectBaseFamilyInfoByFid(String fid)
    {
        return baseFamilyInfoMapper.selectBaseFamilyInfoByFid(fid);
    }

    /**
     * 查询农户管理列表
     *
     * @param baseFamilyInfo 农户管理
     * @return 农户管理
     */
    @Override
    public List<BaseFamilyInfo> selectBaseFamilyInfoList(BaseFamilyInfo baseFamilyInfo)
    {
        return baseFamilyInfoMapper.selectBaseFamilyInfoList(baseFamilyInfo);
    }

    /**
     * 新增农户管理
     *
     * @param baseFamilyInfo 农户管理
     * @return 结果
     */
    @Override
    public int insertBaseFamilyInfo(BaseFamilyInfo baseFamilyInfo)
    {
        return baseFamilyInfoMapper.insertBaseFamilyInfo(baseFamilyInfo);
    }

    /**
     * 修改农户管理
     *
     * @param baseFamilyInfo 农户管理
     * @return 结果
     */
    @Override
    public int updateBaseFamilyInfo(BaseFamilyInfo baseFamilyInfo)
    {
        return baseFamilyInfoMapper.updateBaseFamilyInfo(baseFamilyInfo);
    }

    /**
     * 批量删除农户管理
     *
     * @param fids 需要删除的农户管理主键
     * @return 结果
     */
    @Override
    public int deleteBaseFamilyInfoByFids(String[] fids)
    {
        return baseFamilyInfoMapper.deleteBaseFamilyInfoByFids(fids);
    }

    /**
     * 删除农户管理信息
     *
     * @param fid 农户管理主键
     * @return 结果
     */
    @Override
    public int deleteBaseFamilyInfoByFid(String fid)
    {
        return baseFamilyInfoMapper.deleteBaseFamilyInfoByFid(fid);
    }
}
